<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<title>合同管理查看</title>
<script>
$(function(){
	var contractNo = '${param.contractNo}' || '#';
	var param = {contractNo: contractNo,contractNo_searchType:'eq'};
	$.getJSON('/console/com.fs.jzzn.pojo.Contract/list', param , function(result){
		if(result.rows.length>0){
			$('#easyuiForm').form("load",result.rows[0]);
		}
	}); 
});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="#">
		 <!--类名属性及默认主键id-->
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="contractNo" style="width:370px;" data-options="label:'订单编号:'" />
		  <input class="easyui-textbox easyui-validatebox" name="outContractNo" style="width:370px;" data-options="label:'合同编号:'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="contractName" style="width:240px;" data-options="label:'合同名称:'" />
		  <input class="easyui-textbox easyui-validatebox" name="contractType" style="width:240px;" data-options="label:'分包单位:'" />
		  <input class="easyui-datebox easyui-validatebox" name="signDate" style="width:240px;" data-options="label:'签订日期:'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="partA" style="width:240px;" data-options="label:'合同甲方:'" />
		  <input class="easyui-textbox easyui-validatebox" name="partAuser" style="width:240px;" data-options="label:'甲方经办人:'" />
		  <input class="easyui-textbox easyui-validatebox" name="partAphone" style="width:240px;" data-options="label:'甲方电话:'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="partB" style="width:240px;" data-options="label:'合同乙方:'" />
		  <input class="easyui-textbox easyui-validatebox" name="partBuser" style="width:240px;" data-options="label:'乙方经办人:'" />
		  <input class="easyui-textbox easyui-validatebox" name="partBphone" style="width:240px;" data-options="label:'乙方电话:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="mainUnit" style="width:240px;" data-options="label:'总包单位:'" />
		 	<input class="easyui-textbox easyui-validatebox" name="assistUnit" style="width:240px;" data-options="label:'分包单位:'" />
		 	<input class="easyui-textbox easyui-validatebox" name="payDesc" style="width:240px;" data-options="label:'付款情况:'" />
		 </div>
		  
		 <div style="margin-bottom:20px">
		  	<input class="easyui-textbox easyui-validatebox" name="url" style="width:240px;" data-options="label:'云储存:'" />
		  	<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:500px;height:40px;" data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:760px;" data-options="label:'附件:',upload:{auto:false,height:150,readonly:true}" />
		 </div>
		</form>
	</div>
</body>
</html>